package com.wbao.dianniu.update;

/**
 * Created by yejianjun on 2018/3/7.
 */

public class MapSearchHelper {

    private static MapSearchHelper instance;
    private IMapSearchListener mListener;

    public static MapSearchHelper getInstance() {
        if (null == instance) {
            instance = new MapSearchHelper();
        }
        return instance;
    }

    public interface IMapSearchListener {
        public void searchPosition(String citystr, String keystr);
    }


    public void addListener(IMapSearchListener listenr) {
        mListener = listenr;
    }

    public void removeListener(IMapSearchListener listener) {
        mListener = null;
    }

    public void searchPosition(String citystr, String keystr) {
        if (null != mListener) {
            mListener.searchPosition(citystr, keystr);
        }

    }


}
